﻿<?xml version="1.0" encoding="utf-8"?>
  <xs:schema id="WinKStartSettings" elementFormDefault="qualified" xmlns="userconfig.xsd" attributeFormDefault="unqualified" xmlns:mstns="userconfig.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="userconfig.xsd">
    <xs:element name="WinKStartSettings">
      <xs:complexType>
        <xs:sequence>
          <xs:element name="Behavior" type="mstns:BehaviorSettings" minOccurs="1" maxOccurs="1" />         
          <xs:element name="StartButton" type="mstns:StartButtonSettings" minOccurs="1" maxOccurs="1"/>
          <xs:element name="ContextMenu" type="mstns:ContextMenuSettings" minOccurs="1" maxOccurs="1" />
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:complexType name="BehaviorSettings">
      <xs:sequence>
        <xs:element name="SelectEvent" type="mstns:eSelectEvent" minOccurs="1" maxOccurs="1" />
        <xs:element name="Style" type="xs:string" minOccurs="1" maxOccurs="1" />
        <xs:element name="ActiveRegionOnStart" type="xs:string" minOccurs="1" maxOccurs="1" />
        <xs:element name="LeftMouseClickOpens" type="mstns:eStartButtonAction" minOccurs="1" maxOccurs="1" />
        <xs:element name="WinKeyOpens" type="mstns:eStartButtonAction" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShiftLeftMouseClickOpens" type="mstns:eStartButtonAction" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShiftWinKeyOpens" type="mstns:eStartButtonAction" minOccurs="1" maxOccurs="1" />
        <xs:element name="MouseOverOpens" type="mstns:eStartButtonAction" minOccurs="1" maxOccurs="1" />
        <xs:element name="MouseOverOpensDelayTime" type="xs:integer" minOccurs="1" maxOccurs="1" />
      </xs:sequence>
    </xs:complexType>
    <xs:complexType name="StartButtonSettings">
      <xs:sequence>
        <xs:element name="ButtonMode" type="mstns:eStartButtonMode" minOccurs="1" maxOccurs="1" />
        <xs:element name="ButtonModeCustomImage" type="xs:string" minOccurs="1" maxOccurs="1" />
        <xs:element name="DisableHotEdges" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="DisableMetroScreen" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="RestoreAfterSeconds" type="xs:integer" minOccurs="1" maxOccurs="1" />
      </xs:sequence>      
    </xs:complexType>
    <xs:complexType name="ContextMenuSettings">
      <xs:sequence>
        <xs:element name="EnableContextmenu" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowTaskmanager" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowSystemcontrol" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowExplorer" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowRun" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowSearch" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowProgramsAndFeatures" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowMobilityCenter" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowPorwerOptions" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowEventViewer" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowSystem" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowDevicemanager" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowNetworkConnections" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowDiskmanagement" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowComputermanagement" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowCmdShell" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowCmdShellAdministrator" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowWinKStartSettings" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowPowerShellAdministrator" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowWinKStartExit" type="xs:boolean" minOccurs="1" maxOccurs="1" />
        <xs:element name="ShowPowerShell" type="xs:boolean" minOccurs="1" maxOccurs="1" />
      </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="eStartButtonMode">
      <xs:restriction base="xs:string">
        <xs:enumeration value="Windows" />
        <xs:enumeration value="WinKStart" />
        <xs:enumeration value="Custom" />
      </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="eSelectEvent">
      <xs:restriction base="xs:string">
        <xs:enumeration value="MouseClick" />
        <xs:enumeration value="MouseMove" />        
      </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="eStartButtonAction">
      <xs:restriction base="xs:string">
        <xs:enumeration value="Nothing" />
        <xs:enumeration value="WinKStartStartMenu" />
        <xs:enumeration value="WindowsMetro" />
      </xs:restriction>
    </xs:simpleType>
</xs:schema>
